<?php

class User{
    private $userId;
    private $username;
    private $passwordhash;
    private $email;
    private $joinDate;
    private $currentLocation;

    function  __construct($userId = '', $username = '', $passwordhash = '', $email = '', $joinDate = '',$currentLocation = '') {
        $this->userId = $userId;
        $this->username = $username;
        $this->passwordhash = $passwordhash;
        $this->email = $email;
        $this->joinDate = $joinDate;
        $this->currentLocation = $currentLocation;
    }

    function __get($name)
    {
        return $this->$name;
    }

    function __set($name,$value)
    {
        $this->$name = $value;
    }
}
?>
